.\" Copyright (C) 2004 IBM
.\" This file is distributed according to the GNU General Public License.
.\" See the file COPYING in the top level source directory for details.
.de Sh \" Subsection
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Ip \" List item
.br
.ie \\n(.$>=3 .ne \\$3
.el .ne 3
.IP "\\$1" \\$2
..
.TH "SET_AUMESSAGE_MODE" 3 "2004-12-01" "Linux 2.6" "Linux Programmer's Manual"
.SH NAME
set_aumessage_mode \- Sets the message mode
.SH "SYNOPSIS"
.ad l
.hy 0

#include <libaudit.h>
.sp
.HP 23
void\ \fBset_aumessage_mode\fR(message_t\ \fImode\fR, debug_message_t\ \fIdebug\fR);
.ad
.hy

.SH "DESCRIPTION"

.PP
\fBset_aumessage_mode\fR sets the location where messages are sent and the output of the debug messages.

If \fImode\fR=MSG_STDERR, then messages are sent to stderr. If \fImode\fR=MSG_SYSLOG, then messages are sent to syslog. If \fImode\fR=MSG_QUIET (default), then messages are not sent.

If \fIdebug\fR=DBG_YES, then debug messages are output. If \fIdebug\fR=DBG_NO (default), then debug messages are not output.

.SH "EXAMPLE"

.nf

/* Sample code */
set_aumessage_mode(MSG_SYSLOG, DBG_YES)

.fi

.SH "RETURN VALUE"

None.

.SH "SEE ALSO"

.BR auditd (8),
.BR audit_open (3).

.SH AUTHOR
Debora Velarde.
